package kr.hkit.powerjava.chapter07.test;

import java.util.Scanner;

public class Banbok2 { public static void main(String[] args) {
	  Scanner in = new Scanner(System.in);

	  int a;
	  int sum = 0;
	  
	   System.out.print("정수를 입력을 하여 주세요 : ");
	   a = in.nextInt();
	   if(a > 0) {
	    do {
	     sum = a % 10;
	     a /= 10;
	     System.out.print(sum);
	    } while(a>0);
	    
	   } else {
	    System.out.println("양수를 입력하시오");
	   }
	  }
	}
